home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-20
/
ccdsrc.zip
/
README
< prev
next >
Wrap
Text File
|
1991-09-03
|
3KB
|
120 lines
UoSAT-5 to GIF tools
Version 1
Disclaimer
There was no attempt to make these routines easily portable to anything.
They are for MS-DOS and Microsoft C.
There was no attempt to make these routines easily adaptable to other
raw CCD formats.
This stuff works on my system with the current image format, I'm sending
it out as is to help others get started. It isn't pretty, but there are
only so many hours in the day.
That said, here's what.
These programs take a raw CCDnn file as output from PHS. The format of
this file is described in inter.c, which originally came from UoSAT. This
is a little wrong, there are four undocumented bytes at the front of the
file, which will be more sometime in the future. The output of the
programs is a flat "raster" file suitable to use as input to RG8, which
will convert the file to .GIF.
The programs:
pacout - removes duplicate bytes caused by a problem with the CCD to
file system program on the spacecraft.
inter - merges the two fields into a single frame.
spec - attempts to remove the "speckles" from the image, and reduce the
horizontal white bar.
clip - remove black bar from the left of the image.
The files:
CLIP.C Clip source and program
CLIP.EXE
CONVERT.BAT BAT file to do everything. Say "convert ccdnn", e.g.
phs 1b5.dl /x
convert ccd27
INTER.C Interleave program
INTER.EXE
PACOUT.C pacout program
PACOUT.EXE
SPEC.C speckle program
SPEC.EXE
STDPAL.PAL null palette file
README This file.
Convert explained
pacout %1 %1a
Remove duplicates in raw file
inter %1a %1b
Take the two halves of the file in 611 byte lines and
interleave, making 612 byte lines.
del %1a
spec %1b %1c
Remove speckles by looking for bytes that are more than 20
different that adjacent bytes. Too simple, but works well
for most images.
del %1b
clip %1c %1d 0 44
Remove leftmost 44 bytes on each line, making 568 byte lines.
del %1c
rg8 %1d. /c568 /r578 /ps
Convert raster to .GIF using 578 lines of 568 bytes. Use /r480
to get a file that fits in 640x480.
rg8 is shareware which was on UO-14 a while ago, described thus:
RG8.ARC/binary 01-Sep-88 14791 Accesses: 4
Keywords: GIF SATELLITE CONVERSION COLOR GREY FLEXIBLE FAST
Convert RIX (640x480) raw satellite data files to GIF in
Color or 64 shades of grey. Has options for interlace,
320x200 GIF, different raw data sizes, and palette loading
for color GIFs. Will do everything RG and VG did and a lot
more. Allows experimenting with color images. By Bob
Montgomery.
I'll put it on UO-14 again when I get a chance.
hp
ps, RG8 is available on CIS:
Graphics Support Forum (GO PICS)
LIB 3: Decoders & Encoders
One-line Descriptions of all files as of Friday June 28, 1991
Name/Type Size Date Description
---------- ---- --------- ----------------------------------------------
RG8.ARC B 14K 01-Sep-88 RIX satellite data file to GIF utility